<%--
  Created by IntelliJ IDEA.
  User: 94150
  Date: 2021/8/6
  Time: 17:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="1">
    <tr>
        <td>编号</td>
        <td>名称</td>
        <td>操作</td>
    </tr>
    <c:forEach items="${typeList}" var="type">
        <tr>
            <td>${type.typeId}</td>
            <td>${type.typeName}</td>
            <td><a href="/book/deleteBookType?typeId=${type.typeId}">删除</a></td>
        </tr>
    </c:forEach>
</table>
<form action="/book/addBookType" method="post">
    名称:<input type="text" name="typeName">
    <input type="submit" value="添加">
</form>
</body>
</html>
